
namespace JTZY.Model.Store
{
    /// <summary>
    /// 打印机列表
    /// </summary>
    [SugarTable("corecmsprinter")]
    public class Corecmsprinter
    {
        /// <summary>
        /// 序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 应用名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 应用编码 
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 易联云应用id 
        /// </summary>
        public string ClientId { get; set; }

        /// <summary>
        /// 易联云应用密钥 
        /// </summary>
        public string ClientSecret { get; set; }

        /// <summary>
        /// 易联云终端号 
        /// </summary>
        public string MachineCode { get; set; }

        /// <summary>
        /// 易联云终端密钥 
        /// </summary>
        public string Msign { get; set; }

        /// <summary>
        /// 打印机名称 
        /// </summary>
        public string PrinterName { get; set; }

        /// <summary>
        /// 联系电话 
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 访问令牌，API调用时需要，令牌可以重复使用无失效时间，请开发者全局保存 
        /// </summary>
        public string AccessToken { get; set; }

        /// <summary>
        /// 更新access_token所需，有效时间35天 
        /// </summary>
        public string RefreshToken { get; set; }

        /// <summary>
        /// 令牌的有效时间，单位秒 (30天),注：该模式下可忽略此参数 
        /// </summary>
        public int? ExpiresIn { get; set; }

        /// <summary>
        /// 有效期截止时间 
        /// </summary>
        public DateTime? ExpiressEndTime { get; set; }

        /// <summary>
        /// 其他参数 
        /// </summary>
        public string Parameters { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 是否默认 
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 是否开启 
        /// </summary>
        public bool IsOpen { get; set; }

        /// <summary>
        /// 绑定门店 
        /// </summary>
        public int? StoreId { get; set; }

        /// <summary>
        /// 打印机所属人ID 
        /// </summary>
        public long? UserId { get; set; }

    }
}